package com.turato.table;

import com.turato.table.model.TableMappingEnum;
import com.turato.table.processor.ActionProcessor;
import com.turato.table.processor.FunctionProcessor;

import java.util.Map;
import java.util.function.BiFunction;

/**
 * @author tuhao
 * @date 2021/2/10 11:04 上午
 * @desc
 */
public class App {
    public static void main(String[] args) {
        ActionProcessor actionProcessor = new ActionProcessor();
        actionProcessor.process(TableMappingEnum.ACTION_ONE);
        actionProcessor.process(TableMappingEnum.ACTION_TWO);
        actionProcessor.process(TableMappingEnum.ACTION_THREE);
        // -----ActionOne-----
        //-----ActionTwo-----
        //-----ActionThree----

        FunctionProcessor functionProcessor = new FunctionProcessor();
        Map<Integer , BiFunction<Integer,Integer,Integer>> map = functionProcessor.getFunctionMap();
        map.get(1).apply(1,2);
        map.get(2).apply(1,2);
        map.get(3).apply(1,2);
        map.get(4).apply(1,2);
    }
}
